﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JumbotCms.WebFile.Admin._config_index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<link type="text/css" rel="stylesheet" href="../../admin/otherpage/styles/common.css" />
<script type="text/javascript" src="../../_data/SysConfig.js"></script>
<script type="text/javascript" src="../../_libs/jquery-min.js"></script>
<script type="text/javascript" src="../../scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="../../style/global.css" />
<script type="text/javascript" src="../../_libs/jquery.jtip.js"></script>
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.jtip/style.css" />
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.tabs/style.css">
<!--[if lte IE 7]>
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.tabs/style-ie.css">
<![endif]-->
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.formvalidator/style.css" />
<script type="text/javascript" src="../../_libs/jquery.formvalidator.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$('.tip-r').jtip({gravity: 'r',fade: false});
	ajaxTopNav('1');
	$.formValidator.initConfig({onError:function(msg){}});
	$("#txtTitle").formValidator({tipid:"tipTitle",onshow:"请输入网站名称",onfocus:"建议输入4-6个汉字",oncorrect:""}).InputValidator({min:4,max:30,onerror:"请输入4-30个字符或2-15个汉字,请确认"});
	$("#txtPageCount").formValidator({tipid:"tipPageCount",onshow:"请填写5-50的数字,推荐20",onfocus:"请填写5-50的数字,推荐20",oncorrect:""}).RegexValidator({regexp:"^\([5-9]{1}|[1-4]{1}[0-9]{1}|50)$",onerror:"请填写5-50的数字"});
});
function ajaxTopNav(n)
{
	$("#tab"+n).toggleClass('tabs-selected');
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return jQuery.formValidator.PageIsValid('1')">
	<br />
	<div>
		<div id="ajaxTopNav">
			<ul class="tabs-nav">
				<li id="tab1"><a href="index.aspx"><span>基本参数</span></a></li>
				<li id="tab2"><a href="message.aspx"><span>短信设置</span></a></li>
				<li id="tab3"><a href="user.aspx"><span>用户设置</span></a></li>
			</ul>
		</div>
		<div class="tabs-container">
			<table class="formtable">
				<tr>
					<th> 网站名称 </th>
					<td><asp:TextBox ID="txtTitle" runat="server" MaxLength="50" Width="300px" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipTitle" style="width:250px"> </div></td>
				</tr>
				<tr style="display: none;">
					<th> 网站地址 </th>
					<td><asp:TextBox ID="txtUrl" runat="server" MaxLength="100" Width="200px" ReadOnly="True" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr style="display: none;">
					<th> 网站安装目录 </th>
					<td><asp:TextBox ID="txtDir" runat="server" MaxLength="100" Width="200px" ReadOnly="True" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr style="display: none;">
					<th> 网站是否打开 </th>
					<td><asp:RadioButtonList ID="rblOpen" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1">开</asp:ListItem>
							<asp:ListItem Value="0">关</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr style="display: none;">
					<th> 关闭时的公告语 </th>
					<td><asp:TextBox ID="txtMessage" runat="server" MaxLength="50" Width="550px" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<th> 网站关键字 </th>
					<td><asp:TextBox ID="txtKeys" runat="server" MaxLength="50" Width="550px" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<th> 网站描述 </th>
					<td><asp:TextBox ID="txtDescription" runat="server" MaxLength="50" Width="550px" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<th> 备案号 </th>
					<td><asp:TextBox ID="txtICP" runat="server" MaxLength="100" Width="200px" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr style="display: none;">
					<th> 网站是否定时打开 </th>
					<td><asp:RadioButtonList ID="rblClose" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr style="display: none;">
					<th> 定时开关的时间<input type="button" class="tip-r" tip="<b>不能包含&quot;,&quot;<br />起止小时用符号&quot;|&quot;分开" /></th>
					<td><asp:TextBox ID="txtOpenTime" runat="server" maxlength="6" Width="80px" CssClass="ipt"></asp:TextBox>
					</td>
				</tr>
				<tr style="display:none;">
					<th> 每页显示记录数 </th>
					<td><asp:TextBox ID="txtPageCount" runat="server" MaxLength="3" Width="40px" CssClass="ipt"></asp:TextBox>
						条
						<div class="ValidatorTip" id="tipPageCount" style="width:250px"> </div></td>
				</tr>
				<tr>
					<th> 网站版式<input type="button" class="tip-r" tip="<b>请勿随意改动该参数</b><br/>选择实时动态，所有频道都不会生成静态" /></th>
					<td><asp:RadioButtonList ID="rblSkin" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="0">静态生成</asp:ListItem>
							<asp:ListItem Value="1">实时动态</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr style="display:none;">
					<th> 静态后缀名 </th>
					<td><asp:RadioButtonList ID="rbStaticExt" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value=".htm">.htm</asp:ListItem>
							<asp:ListItem Value=".html">.html</asp:ListItem>
							<asp:ListItem Value=".aspx">.aspx</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<th> 是否开启注册 </th>
					<td><asp:RadioButtonList ID="rblReg" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<th> EMAIL只允许注册一个ID </th>
					<td><asp:RadioButtonList ID="rblEmail" runat="server" RepeatDirection="Horizontal" Enabled="false">
							<asp:ListItem Value="1">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<th> 需要邮件激活<input type="button" class="tip-r" tip="如果选择是，那么需要在&quot;邮箱系统&quot;中配置系统邮箱" /></th>
					<td><asp:RadioButtonList ID="rblAdmin" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
			</table>
		</div>
	</div>
	<div class="buttonok">
		<asp:Button ID="Button1" runat="server" Text="保存" CssClass="btnsubmit" OnClick="Button1_Click" />
	</div>
</form>
</body>
</html>
